/*////////////////////////////////////////////////////////////////////////
*
*  Project:      mapgen
*  Description:  Map Generator for Planet Wars at http://ai-contest.com/.
*  Author:       Copyright (C) 2010 Alexander Makodzeba
*  License:      GPLv3
*
*  This file is part of mapgen.
*
*  mapgen is free software: you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation, either version 3 of the License, or
*  (at your option) any later version.
*
*  mapgen is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with mapgen.  If not, see <http://www.gnu.org/licenses/>.
*
////////////////////////////////////////////////////////////////////////*/

#ifndef __STDAFX_H__
#define __STDAFX_H__

#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <sstream>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <ctime>

//////////////////////////////////////////////////////////////////////////
//
const int NUM_PLAYERS = 2;
const int NUM_PLAYERS_MIN = NUM_PLAYERS;
const int NUM_PLAYERS_MAX = NUM_PLAYERS;

//////////////////////////////////////////////////////////////////////////
//
struct Coordinates
{
	double x;
	double y;
};

//////////////////////////////////////////////////////////////////////////
//
struct MinMaxPair
{
	int Min;
	int Max;
};

//////////////////////////////////////////////////////////////////////////
// swap t1 and t2, if t2 is less than t1
template<class T> inline void MinMaxNormalize(T& t1, T& t2)
{
	if(t1 > t2)
	{
		T t;
		t = t1;
		t1 = t2;
		t2 = t;
	}
}

#endif // __STDAFX_H__
